package com.biz.service.user.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.biz.dao.common.GenericDAO;
import com.biz.dto.page.PageResult;
import com.biz.dto.user.RoleDTO;
import com.biz.dto.user.UserDTO;
import com.biz.service.user.UserService;
import com.framework.core.exception.UserException;

@Service("userServiceImpl")
public class UserServiceImpl implements UserService {

	@Resource(name="genericDAOImpl")
	private GenericDAO<UserDTO, String> genericDAO;
	
	public PageResult<UserDTO> queryUserList(PageResult<UserDTO> pageView) {
		// TODO Auto-generated method stub
		return null;
	}

	
	public UserDTO queryUserById(String id) throws UserException{
		return genericDAO.query(UserDTO.class, id);
	}


	@Override
	public UserDTO queryUserByName(String username) throws UserException {
		// TODO Auto-generated method stub
		return null;
	}


	@Override
	public RoleDTO queryRoleById(int id) throws UserException {
		// TODO Auto-generated method stub
		return null;
	}

	

}
